#include  <stdio.h>
#include  <string.h>
#include  <ctype.h>
#include  <stdlib.h>

#include "timer_bsp.h"

#include "raw_api.h"
#include <mm/raw_page.h>
#include <mm/raw_malloc.h>

#include "diskio.h"
#include "ff.h"
#include "integer.h"

#include "sd_driver.h"
#define SD_TASK_STK_SIZE     (10*1024)

PORT_STACK sd_task_stack[SD_TASK_STK_SIZE];

RAW_TASK_OBJ 		sd_task_obj;
extern void global_mem_init(unsigned int start_mem, unsigned int end_mem);

extern void Test_SDI(void);

void task_sd_test(void *arg)
{
			Timer0Init();
			Test_SDI();
}
	
void sd_test()
{
	raw_task_create(&sd_task_obj, (RAW_U8  *)"task1", 0,
	                         10, 0,  sd_task_stack, 
	                         SD_TASK_STK_SIZE ,  task_sd_test, 1); 

}
